local function onpicked(inst, data)
    if math.random() < 0.1 then
        local ent = SpawnPrefab("witch_deciduoustrees")
        local pos = inst:GetPosition()
        local aimpos = pos
        aimpos = aimpos or pos
        ent.Transform:SetPosition(aimpos:Get())
        if ent.spawn_fn then
            ent:spawn_fn()
        end
    end
end
AddPrefabPostInit("flower", function(inst)
    if not TheWorld.ismastersim then
        return
    end
    inst:ListenForEvent("picked", onpicked) --{ picker = picker, loot = loot, plant = self.inst })
end)
